package com.hdit.guimei.util;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@Component
@ControllerAdvice
public class ExceptionAdviceUtil {
    @ExceptionHandler(RuntimeException.class)
    public String errorAll() {
        return "error";
    }
}
